#ifndef MY_SWITCH2_H
#define MY_SWITCH2_H

#include <QWidget>
#include <QLabel>
#include <QGroupBox>
#include <QPushButton>
#include <QHBoxLayout>
#include "my_led.h"
#include "common.h"

class My_switch2 : public QGroupBox
{
    Q_OBJECT
public:
    My_switch2(const QString &title, QWidget* parent = nullptr);
    void setEnabled(bool flag);
    void set_status(int num);
    QPushButton* btn_open;
    QPushButton* btn_close;

private:
    My_led* value;
    QHBoxLayout* box;
};

#endif // MY_SWITCH2_H
